package operation;

import book.Book;
import book.Booklist;

public class DisplayOperation implements IOperation{
    public void work(Booklist booklist){
        System.out.println("打印图书！");
        int size=booklist.getUsedSize();
        for (int i = 0; i < size; i++) {
            Book book=booklist.getPos(i);
            System.out.println(book);
        }
    }
}


























